#include <iostream>

class Object {
public:
    Object(const char *str)
    {
        s = str;
    }

    friend std::ostream &operator <<(std::ostream &os, const Object &o)
    {
        os << o.s;
        return os;
    }

private:
    const char *s = nullptr;
};

int main()
{
    Object a("1");

    std::cout << a << std::endl;
    return 0;
}
